package com.gitee.wsl.compose.chart.polar.axis

import com.gitee.wsl.common.ui.api.LabelAble

/**
 * A model for a radial axis that transforms from axis space to drawing space.
 */
 interface RadialAxisModel<T>: LabelAble<T> {
    /**
     * Provides a list of tick values that should be rendered for the axis.
     */
     val tickValues: List<T>

    /**
     * Transforms the provided [point] in this axis space to the fraction representing the point's distance
     * from the origin relative to the overall axis length.
     */
     fun computeOffset(point: T): Float

     companion object
}